﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GSLMS.Services.Interface;
using GSLMS.Entity;
using GSLMS.Entity.DTO;

namespace GSLMS.Services
{
    public class ModuleService :  IModule
    {
        private static readonly GSLMS.DAL.Oracle.Module dal = new DAL.Oracle.Module();
        public List<Module> GetAll()
        {
            return dal.GetAll();
        }

        public List<Module> GetAll(UniversallySearchParam searchparma)
        {
            return dal.GetAll(searchparma);
        }

        public Module GetByID(string id)
        {
            return dal.GetByID(id);
        }


        public bool Add(Module model)
        {
            return dal.Add(model);
        }

        public bool Update(Module model)
        {
            return dal.Update(model);
        }

        public bool Delete(string id)
        {
            return dal.Delete(id);
        }

        public bool SaveAll(List<Module> models)
        {
            return dal.SaveAll(models);
        }

    }
}
